{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Arduino Analog Example\n",
    "\n",
    "This example shows how to read out analog values on Arduino analog pins. Users can either wire the test pins, or use the PYNQ shield. \n",
    "\n",
    "For this notebook, a PYNQ Arduino shield is used. The grove joystick is connected to group A1, while a grove potentiometer is connected to group A4 on this shield."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "# Make sure the base overlay is loaded\n",
    "from pynq.overlays.base import BaseOverlay\n",
    "base = BaseOverlay(\"base.bit\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 1. Instantiate individual analog controller\n",
    "In this example, connect the grove joystick to group A1."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from pynq.lib.arduino import Arduino_Analog\n",
    "from pynq.lib.arduino import ARDUINO_GROVE_A1\n",
    "from pynq.lib.arduino import ARDUINO_GROVE_A4\n",
    "\n",
    "analog1 = Arduino_Analog(base.ARDUINO,ARDUINO_GROVE_A1)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2. Read voltage value out\n",
    "\n",
    "Read out the individual analog voltage values. The voltage (volts) is in the range of [0.0, 3.3]."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([0.6403, 0.6848])"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "analog1.read()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3. Read raw value out\n",
    "\n",
    "Read out the individual raw values. Since the XADC is 16-bit, the raw value is in the range of [0, 65535]."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "12601"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "analog1.read('raw')[0]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 4. Logging multiple sample values\n",
    "\n",
    "### Step 1: Starting logging once every 100 milliseconds\n",
    "Once the interval is set, users can change the analog values.\n",
    "\n",
    "For example, if the grove potentiometer is used, move the slider back and forth slowly.\n",
    "If the joy stick is used, rotate the joy stick slowly."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from time import sleep\n",
    "\n",
    "analog1.set_log_interval_ms(100)\n",
    "analog1.start_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "### Step 2: Get the log\n",
    "Stop and get the log whenever is done.\n",
    "\n",
    "The log is a nested list, where each list inside log records the samples for one channel."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "log1 = analog1.get_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Step 3. Plot values over time\n",
    "The voltage values can be logged and displayed."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXEAAAE/CAYAAACw1fO4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VPW9//HXJywCSUhYLMiOUdC6lJ9a5dYlQaqtK3Wp\nVQHBul1ruf7qVrUi4XKt2h9Xbe2i/FwRFG311oXWnwvGhV60F6UiiGCEsAkU2ZEt5PP7YyaTk8lM\nMgkzk5zwfj4e88iZc75zzvd7zslnzny/3/M95u6IiEg45TR3BkREpOkUxEVEQkxBXEQkxBTERURC\nTEFc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ekNbt/PGPf/SDDz7Yt2/f7rfeequfeeaZSdNWVVX5hRde6D179vQuXbr4sGHD/NNPP3V39127\ndvlRRx3lf/jDH9zdvbKy0ocOHep33323u7vfcccdsav+r7/+2i+99FLv1q2bFxYW+gknnOBfffVV\nwm0uWLDAi4uLvbCw0I8++mifOXOmu7v/4he/8Pbt23u7du08Pz/fp06dWuezwW26u7/wwgt+xBFH\neJcuXXz48OH+2Wefubv73Xff7T/60Y9qffbaa6/1m266yd0jV9wDBgzw/Px8Lyoq8meffdbnz5/v\nHTp08LZt23peXp4feOCB7h75dTNx4sTYep5//nkfMmSId+7c2Q899FB//fXX3b32lfiqVav8yCOP\njJ3r8ajnSrzZg2u2Xk0N4qUjR8YCuAcCeenIkU1aXzIbN270gw46yLt3797gT6yvvvrKX3jhBd+5\nc6dv27bNL7roIj/vvPNiy1977TU/6KCDfN26dX7llVf6RRddFFsWDKi33XabX3vttb53716vrKz0\n9957L+H2NmzY4F26dPHp06f73r17/ZlnnvEuXbr4hg0b6qwzkeDyN99807t37+7z5s3z3bt3+7hx\n42JfHh988IH37t079rn169d7bm6u//Of//TPPvvM+/btG/uJX1FR4V9Ev0gTVacEg/hzzz3nffr0\n8blz57q7e3l5uS9fvtzda4L43LlzvV+/fv6Xv/yl3n2fTdkK4u7uF154oZ977rnevXt3X7VqVdJ0\nVVVV/uSTT/r27dt9165dPm7cOD/uuONiy//xj394165dffHixV5aWuonnXRSrKojGFB/97vf+Xnn\nnee7du3yqqoqnzt3rm/fvr3O9nbv3u0DBw70yZMne2Vlpb/xxhuel5fn5eXlddaZSHD5woULPS8v\nz8vKyryystJ/+ctf+uDBg72ystJXrlzp+fn5vnXr1th2u3Xr5vPnz/ctW7Z4QUFBbJtr1qyJfXE9\n8sgjPmzYsFrbDAbx2bNne2Fhob/11lvu7r5y5UpfvHixu9cE8c8//9wPOeQQf/zxx5OWo74grobN\nBlStWkVu3LxcoGr16rRup7CwkCOOOIIdO3Zw3nnn1Zu2a9eunHfeeRxw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yCOP8NBDD/HHP/6R2bNnA9C3b1+2bt3K1q1b2bJlCwD/+Z//yZIlS/j73//Opk2b\neOeddwBiQbyqqoqrr76aMWPG8Pvf/54vvvgi4Xbz8vKYPHky5eXlvPTSS9x333289dZbddL16tWL\nZcuW1Zq3fPlyevfu3eiy9urVi4qKitj77du389VXX8XWNXr0aF588UU+/vhjFi1axA9+8INY2osv\nvph333039vmf//znAA02LPXt25fy8vKkyx966CGWL1/ODTfc0OjytGY5OTmx827Lli307NmTqVOn\n8uqrr1JWVsamTZv4/PPPAWpdQFx77bWcd955vPLKK3zwwQcJ192uXTvuvPNOFi5cyHvvvccLL7zA\n9OnT66Tr1asXK1asqDUvXeeeu7Ny5crYus4//3zmzp3LwoUL+etf/1qry+L3vvc9Xn/9ddasWUNR\nURH/+q//Cuz7uTdp0iQ6d+7MyJEja+3DxlAQb0D/gQMZ9/rrTB45kgnDhjF55EjGvf562nqnAPz0\npz/l/PPP55RTTqFnz57ce++9XHnllezZsydh+q1bt9KxY0c6d+7Mhg0bKC0trbX8rrvuIicnh8ce\ne4ybbrqJ0aNHJzxBZs6cGTvB8vPzadu2LTk5dU+JM888kyVLljBjxgz27t3Ls88+y6effsrZZ5/d\n6LJecsklPP7443z88cfs2rWL22+/naFDh8autnr37s2xxx7L6NGjueCCCzjggAMAWLx4MW+99Ra7\nd++mffv2dOzYMZbXHj16sGzZsqT/BFdeeSWTJ0/mww8/BKC8vLxWYMjPz+fVV1/lnXfe4bbbbmt0\nmTJl0KAOFBeX1nkNGtSh2fK0detWDjjgALp06cL27du5/fbbay1//PHHWbBgAU888QT33Xcfo0aN\nilW1BL311lssWLAAdycvL4927dolPPe+853v0LZtW+677z4qKyuZNWsWf/3rX7n44osbnfeLLrqI\nl156iXfeeYfKykp+9atf0blzZ0444QQAOnXqxIgRI7jkkks46aST6NkzMmjgmjVreOWVV9ixYwdt\n27YlNze31rm3cuVKKisrE27ziiuu4JFHHuHtt9/G3Vm1alWtq/j27dvz/PPPs3HjRsaOHdu0QJ6s\nsry1vWih/cT//Oc/e+/evX3z5s215g8fPtzvuOOOhJ9ZvXq1l5SUeF5eng8ePNinTJniOTk5vnfv\nXp87d6537do11ui3d+9eP+mkk/yXv/ylu9duZLz//vt9wIABnpeX53379vW77roraT5nz57txx57\nrBcWFvpxxx0X653iHulZk2rDprv7ww8/7EVFRd6tWzc/55xz6jSkPfXUU56Tk+Nvv/12bN7HH3/s\nxx9/vHfu3Dn2uepeLV999ZWfdNJJ3qVLFz/22GPd3X3YsGG1eqc8/PDDPnjwYM/Pz/ejjjrK582b\n5+7uAwcOjPVO2bBhgw8ZMsTvvPPOpGVpzYL7IpmtW7f6Oeec4/n5+T5w4ECfOnWq5+TkeEVFhS9b\ntsy7devmH3zwQSz9hRde6D/5yU/cvXYj47Rp03zQoEGen5/vBx10kN9www1J+3p/8sknfvLJJ3tB\nQYEfddRRsZ5X8etMJFHvlMMPP9y7dOnip556qi9atKhW+rfeesvNzKdPnx6bt3LlSj/llFO8sLAw\n9rnqXi27du3yM88807t27eoHHXSQuyfunXLUUUd5fn6+Dxo0KLaPTz755Fgnhh07dvjw4cP9yiuv\nTFgO6mnY1FC0knFjxozh0EMP5Y477kgp/XvvvceoUaPqVOGINNYvfvELvvrqq6SN+/GWLVvG0Ucf\nzdq1a+nYsWOGc5c6DUUrzaayspLPPvss5Z4ke/bs4YEHHuCqq67KcM6ktXN3Fi5cmPK5V1VVxeTJ\nk7n00ktbVABviIK4ZNRBBx1E165dueCCCxpMu2jRIrp06cLatWu5/vrrs5A7ac2GDBnC+vXrueKK\nKxpMu2XLFgoKCnj33XeZMGFCFnKXPqpOERFp4VSdIiLSSimIi4iEmIK4iEiI7TdD0Xbo0GGtmbX8\nsTVFROJ06NBhbbJl+03DpohIa6TqFBGREFMQFxEJMQVxEZEQUxAXEQkxBXERkRD7/6RGLy/O9a0p\nAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x315bacd0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "from matplotlib.legend_handler import HandlerLine2D\n",
    "\n",
    "line1, = plt.plot(range(len(log1[0])), log1[0], \n",
    "                  'ro', label=\"X-axis of joystick\")\n",
    "line2, = plt.plot(range(len(log1[1])), log1[1], \n",
    "                  'bs', label=\"Y-axis of joystick\")\n",
    "plt.title('Arduino Analog Voltage Log')\n",
    "plt.axis([0, len(log1[0]), 0.0, 3.3])\n",
    "plt.xlabel('Sample number')\n",
    "plt.ylabel('Voltage')\n",
    "plt.legend(loc=4,bbox_to_anchor=(1, -0.3),\n",
    "           ncol=2, borderaxespad=0.,\n",
    "           handler_map={line1: HandlerLine2D(numpoints=1),\n",
    "                        line2: HandlerLine2D(numpoints=1)})\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 5. Logging multiple devices\n",
    "We can also repeat the above steps to track multiple analog devices.\n",
    "In this example: \n",
    "    * connect the grove joystick to group A1.\n",
    "    * connect the grove potentiometer to group A4.\n",
    "\n",
    "Both analog devices will be monitored.\n",
    "\n",
    "### Step 1: Starting logging once every 100 milliseconds\n",
    "Once the interval is set, users can change the analog values by:\n",
    "    * rotating the joy stick.\n",
    "    * moving the slider back and forth."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "analog2 = Arduino_Analog(base.ARDUINO,[0,1,4])\n",
    "analog2.set_log_interval_ms(100)\n",
    "analog2.start_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Step 2: Get the log\n",
    "Stop and get the log whenever is done.\n",
    "\n",
    "The log is a nested list, where each list inside log records the samples for one channel."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "log2 = analog2.get_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Step 3. Plot values over time\n",
    "The voltage values can be logged and displayed."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXEAAAE/CAYAAACw1fO4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4VOXZ+PHvHQgGkkASQNZAYhARl1JEwY0EqLUqSlGK\nyqIoSmtb6+uOCxJqLbRS9X2tVqkLIrig+FNQa10gUKhbQSqyakgCBAHZIazJ3L8/zswwGSb77Lk/\n1zXXmTnn5Jz7nJnc88xznvM8oqoYY4yJTQmRDsAYY0z9WRI3xpgYZkncGGNimCVxY4yJYZbEjTEm\nhlkSN8aYGGZJ3CAi14vIv2q57ggR+SDUMQWbiBSJyMBIx+FLRHJFZGOk4zCxzZJ4nBCRAhHZKSKJ\n9dxErW4YUNVXVPVn9dxHjUQkS0QqROSpUO0jWETkbyLyUoD5PxKRQyKSVovNeM97JL9oRGSBiNwY\niX2bhrEkHgdEpCtwDrANuKKGdaP9Pb8O+Aa4ugFfSOHyEjBURJr7zR8FzFPV3RGIyTQy0f4PbWrn\nOuAjYAYwxneBiLwoIk+LyHsisg/IE5EMEZkrIntE5DMgx2f9riLi8k32vqU0/6oX97q/FJF17l8C\nf/VZJiLyoIgUi8gWEZkuIqm1OJZ8YAdwud+xVLevk0TkExHZLiLbRGSmiLQMtAMRaSYiT4hIqYhs\nEpHHfb8wROQeEdnsXjbWvd+T/Lejqp8BpcBVPn+bAIzASfA17svn72YAXYB5IrJXRO5yz58tIt+L\nyC73r62ePn+TISLz3O/j5yLysN9700NEPhSRHSKyWkR+Uf2pD0xErhCRb9znfL6I9PBZ1ltElrlj\nmC0ir4nI7+uzH1NPqmqPGH8A3+IkjpOBI0Bbn2UvAruAfu7XJwCvuR9JwGnAJmCRe3lXoAJI8NnG\nAuBG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K4McbEMEvixhgTwyyJm1q75ZZb\neOSRR4K6zW3bttG/f39atWrF3XffHZZ91uTSSy/l5ZdfrnG97Oxs5s+fH4aITF1NnjyZcePGRTqM\n8AjH4KGx/nBOU/TZv3+/ZmVl6SuvvOKdt2/fPu3SpYvOmTMngpHV3sMPP6xXXXVVxPafn5+vo0eP\nrtffZmVl6SeffBLkiBoHEdHCwsKgbKugoEA7d+4clG01VF5enj7//PNB3647BwXMT1YSD7GSoiIm\njRrFxAEDmDRqFCVFRUHbdnJyMs8++yy33XYbO3bsAODuu+/mnHPO4corrwzafkKppKSEnj17RjqM\nuKWqjJ803lMYiRoiAVvL1YuqBnV7keRyuer+R1Vld3s0vCRevH693pmTo/tBFXQ/6J05OVq8fn29\ntleVG264Qa+99lotKCjQNm3a6LZt26pcd9euXTp48GBt27atZmRk6ODBg3XTpk2qqrpz507t3Lmz\nvvvuu6rqlPS7deumL7/8sqqqjhkzRidMmKCqqtu3b9fBgwdrWlqaZmRkaP/+/avc55IlS/Tss8/W\ntLQ0Peecc/Tf//63d3uJiYnarFkzTU1NDViq9d2nquq0adO0W7du2rp1ax0yZIh+//33qqr6m9/8\nRu+8885Kf3vFFVfoE088oaqqU6ZM0U6dOmlqaqr26NFD58+frx988IE2a9ZMmzVrpikpKdqrVy9V\nPb40NW3aND311FM1NTVVTzvtNP3qq69UtXJJfNWqVZqdna2vvfZalechEt545w1N7Z+qb859MyTb\nz8rK0smTJ2vPnj01IyNDb7zxRj18+LCqVv1e9e/fX0VEk5OTNTU1VWfPnq2qqvPmzdNevXppWlqa\nnn/++fr1119X2s/UqVP1zDPP1LS0NL366qv18OHDWlZWps2bN9cmTZpoSkqKpqam6vfff6/5+fk6\natQo79+/8847etppp2l6eroOGDBAV69eXWnbjz76qJ5xxhmampqqY8eO1a1bt+oll1yiLVu21Isu\nukh3797tXf/TTz/V8847T9PS0rRXr15aUFCgqqoPPPCANmnSRJs3b66pqal66623qqrq6tWr9aKL\nLtKMjAzt0aOH93hVnc/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zPfzww7Rs2ZKRI0dWOofGhJMl8RDq3j2J3Nz84x7duydFJJ59+/Zxwgkn\nkJ6eTllZGffff3+l5S+++CIrV65k+vTpPPbYY4waNcpb1eJrwYIFrFy5ElUlJSWFxMTEgEOznXfe\neTRt2pTHHnuM8vJy5s+fzz/+8Q+uueaaOsc+fPhw5s6dy6JFiygvL+fPf/4zLVu2pG/fvoAzcO6Q\nIUO49tprueCCC2jfvj0AW7Zs4d133+XgwYM0bdqU5OTkSkOzbdq0ifLy8oD7HDt2LM899xwLFy5E\nVSktLa1Uim/WrBlz5sxh165djBkzxhK5iYyqKsvt0fALm+HkP8RUIPv27dPLL79cU1NTNTs7W2fM\nmKEJCQlaUlKixcXF2rp1a/3iiy+86w8bNkx//etfq2rli4wzZ87U7t27a2pqqnbo0EHvuOMO7wVQ\nf998841eeOGF2qpVKz3jjDP03Xff9S6ry4VNVad1yqmnnqrp6ek6cOBAXbNmTaX1FyxYoCKis2bN\n8s7btGmT9u/fX9PS0rx/52nVcvjwYb300ks1IyNDO3TooKqBW6ecccYZmpqaqt27d/ee4wsvvNDb\nOuXgwYM6aNAgvemmm6o8FmMaAhuerWGsP/HIeOCBB9ixYwfPPPNMrdYvLi7mzDPPZOvWrTRv3jzE\n0RkTPtafuIk5qsqqVatqPTSby+Vi6tSpjBgxwhK4aVTsjk0TlXr16kXLli0ZO3Zsjevu3buXTp06\ncdJJJ/HBBx+EITpjoodVp9SCVacYYyLJqlOMMSZOWRI3xpgYZkncGGNimF3YrIWkpKStIhL9fbsa\nY+JSUlLS1qqW2YVNY4yJYVadYowxMcySuDHGxDBL4sYYE8MsiRtjTAyzJG6MMTHs/wPKac8FamBB\n/wAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x30cc76d0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "from matplotlib.legend_handler import HandlerLine2D\n",
    "\n",
    "line1, = plt.plot(range(len(log2[0])), log2[0], \n",
    "                  'ro', label=\"X-axis of joystick\")\n",
    "line2, = plt.plot(range(len(log2[1])), log2[1], \n",
    "                  'bs', label=\"Y-axis of joystick\")\n",
    "line3, = plt.plot(range(len(log2[2])), log2[2], \n",
    "                  'g^', label=\"potentiometer\")\n",
    "plt.title('Arduino Analog Voltage Log')\n",
    "plt.axis([0, len(log2[0]), 0.0, 3.3])\n",
    "plt.xlabel('Sample number')\n",
    "plt.ylabel('Voltage')\n",
    "plt.legend(loc=4,bbox_to_anchor=(1, -0.3),\n",
    "           ncol=2, borderaxespad=0.,\n",
    "           handler_map={line1: HandlerLine2D(numpoints=1),\n",
    "                        line2: HandlerLine2D(numpoints=1),\n",
    "                        line3: HandlerLine2D(numpoints=1)})\n",
    "plt.show()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
